/**
 * jims
 */
package com.jims.master.modules.reg.entity;

import com.jims.master.common.persistence.DataEntity;
import com.jims.master.modules.sys.entity.OrgDept;
import com.jims.master.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

/**
 * 号别Entity
 * @author chenxy
 * @version 2017-02-27
 */
public class ClinicIndex extends DataEntity<ClinicIndex> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 号别名称
	private String deptId;		// 门诊科室
	private String doctorId;		// 所属医生
	private String clinicItemId;		// 诊疗项目ID
	private String inputCode;		// 输入码
	private String sort;		// 排序
    private String doctorName;
    private String deptName;
    private String createdUser;
    private String clinicItemName;
    private OrgDept orgDept;
    private User doctor;
    public String getClinicItemName() {
        return clinicItemName;
    }

    public void setClinicItemName(String clinicItemName) {
        this.clinicItemName = clinicItemName;
    }

    public ClinicIndex() {
        super();
        this.sort="30";//sort 默认值
 	}


    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getCreatedUser() {
        return createdUser;
    }

    public void setCreatedUser(String createdUser) {
        this.createdUser = createdUser;
    }

    public ClinicIndex(String id){
		super(id);
	}

	@Length(min=1, max=200, message="号别名称长度必须介于 1 和 200 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=64, message="门诊科室长度必须介于 1 和 64 之间")
	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}
	
	@Length(min=0, max=64, message="所属医生长度必须介于 0 和 64 之间")
	public String getDoctorId() {
		return doctorId;
	}

	public void setDoctorId(String doctorId) {
		this.doctorId = doctorId;
	}
	
	@Length(min=1, max=64, message="诊疗项目ID长度必须介于 1 和 64 之间")
	public String getClinicItemId() {
		return clinicItemId;
	}

	public void setClinicItemId(String clinicItemId) {
		this.clinicItemId = clinicItemId;
	}
	
	@Length(min=0, max=50, message="输入码长度必须介于 0 和 50 之间")
	public String getInputCode() {
		return inputCode;
	}

	public void setInputCode(String inputCode) {
		this.inputCode = inputCode;
	}

	@Length(min=0, max=11, message="排序长度必须介于 0 和 11 之间")
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

    public User getDoctor() {
        return doctor;
    }

    public void setDoctor(User doctor) {
        this.doctor = doctor;
    }

    public OrgDept getOrgDept() {
        return orgDept;
    }

    public void setOrgDept(OrgDept orgDept) {
        this.orgDept = orgDept;
    }
}